package ch.supsi.mobile.core;

public class Address implements IAddress{

	private String id;
	private String name;
	private String number;
	
	public Address(String id, String name, String number){
		this.id = id;
		this.name = name;
		this.number = number;
	}
	
	@Override
	public String getId() {
		return id;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public String getNumber() {
		return number;
	}
	
	@Override
	public String toString(){
		return name+": "+number;
	}

	@Override
	public boolean equals(Object obj) {
		Address a = (Address)obj;
		return (this.id.equals(a.getId()) && this.name.equals(a.getName()) &&this.number.equals(a.getNumber()));
	}

}
